package com.lagou;

import com.lagou.bean.Person;
import com.lagou.service.Neo4jPersonService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.util.List;

@SpringBootApplication
public class Neo4jBootAppMain {
    public static void main(String[] args) {
        ApplicationContext  applicationContext = SpringApplication.run(Neo4jBootAppMain.class,args);
        Neo4jPersonService  personService = applicationContext.getBean("personService",Neo4jPersonService.class);


        List<Person> personList = personService.pathAll("王启年", "九品射手燕小乙");
        System.out.println(personList);
    }
}